{% extends "base.html" %} {% block title %}创建优惠券{% end %}


{% block sub %}
<!--  START SUB NAV -->
    
    <!-- the class "active" is used to highlight the current/active linke -->
	<div id="subnav">
        <ul>
            <li><a href="/home/" class="active">创建优惠券</a></li>
            <li><a href="/coupon/">优惠券管理</a></li>
        </ul>
    </div><!--  end div #subnav -->
    <!--  END SUB NAV -->    
{% end %}

{% block head %}
    
    <script>
	$(function() {
		$( "#valid-date" ).datepicker();
	});
    </script>    
{% end %} 

{% block content %}
    
    <div id="primary_content">
        
        <h3>创建优惠券</h3>
        <p>请填入信息.</p>
        <form action="" method="post">
            <p>
                <label for="name">优惠券名称</label>
                <input type="text" id="name" name="name" class="input medium"/>
            </p>
            <p>
                <label for="url">优惠券地址</label>
                <input type="text" id="url" name="url" class="input medium"/>
            </p>
            <p>
                <label for="amount">面额</label>
                <input type="text" id="amount" name="amount" value="10" class="input medium"/>
            </p>
            <p>
                <label for="number">发放数量</label>
                <input type="text" id="number" name="number" value="100" class="input medium"/>
            </p>
            <p>
                <label for="valid-date">截至日期</label>
                <input type="text" id="valid-date" name="valid-date" class="input medium"/>
            </p>
            <p>
                <label for="desc">其他说明</label>
                <textarea id="desc" name="desc" rows="4" class="large"></textarea>
            </p>
            <p>
                {{ xsrf_form_html() }}
                <input type="submit" class="button" value="创建"/>
            </p>
        </form>
    
    </div>

{% end %}